from PySide6.QtCore import Qt
from PySide6.QtWidgets import QDockWidget, QWidget


class LeftDockWidget(QDockWidget):
    def __init__(self, t: 'str', parent: 'QWidget'):
        super().__init__(parent=parent, flags=Qt.Widget)
        self.setWindowTitle(t)
        self.setAllowedAreas(self.allowedAreas() & Qt.LeftDockWidgetArea)
        self.setFeatures(QDockWidget.NoDockWidgetFeatures)
        
